import json
import json

data = {
    'name': 'Alice',
    'age': 25,
    'city': 'New York'
}

with open('../temp/example.json', 'w') as f:
    json.dump(data, f)

with open('../temp/example.json', 'r') as f:
    data = json.load(f)
    print(data)
